#ifndef PICSTATEBTN_H
#define PICSTATEBTN_H

#include<QPushButton>

class PicStateBtn : public QPushButton
{
    Q_OBJECT
public:
    PicStateBtn(QWidget *parent = Q_NULLPTR);
    void setIcons(const QString& normal, const QString& hover, const QString& pressed,
                  const QString& normal_2, const QString& hover_2, const QString& pressed_2);
    ~PicStateBtn();
protected:
    bool event(QEvent *e) Q_DECL_OVERRIDE;
private:
    void setNormalIcon();
    void setHoverIcon();
    void setPressedIcon();
    void setNormal2Icon();
    void setHover2Icon();
    void setPressed2Icon();
    QString _normal;
    QString _hover;
    QString _pressed;
    QString _normal_2;
    QString _hover_2;
    QString _pressed_2;
    int _cur_state;
public slots:
    void SlotStart();
    void SlotStop();
};

#endif // PICSTATEBTN_H
